﻿namespace BlogsAPI.Rdf
{
    using System.Xml.Serialization;

    /// <summary>
    /// The foaf:knows property relates a foaf:Person to another foaf:Person that he or she knows.
    /// </summary>
    /// <value>A person known by this person (indicating some level of reciprocated interaction between the parties).</value>
    [XmlRoot("knows", Namespace = "http://xmlns.com/foaf/0.1/")]
    public class FoafKnow : RdfElement
    {
        [XmlElement("Person", Namespace = "http://xmlns.com/foaf/0.1/", Type = typeof(FoafPerson))]
        [XmlElement("Group", Namespace = "http://xmlns.com/foaf/0.1/", Type = typeof(FoafGroup))]
        [XmlElement("Organization", Namespace = "http://xmlns.com/foaf/0.1/", Type = typeof(FoafOrganization))]
        [XmlElement("Syndicated", Namespace = "http://blogs.yandex.ru/schema/foaf/", Type = typeof(YaSyndicated))]
        public FoafAgent Person { get; set; }
    }
}
